class CompanyModel {
  final String billingAddr;

  final String mailingCity;

  final String mailingState;

  final String mailingZipCode;

  CompanyModel(this.billingAddr, this.mailingCity, this.mailingState,
      this.mailingZipCode);

  CompanyModel.fromJson(Map<String, dynamic> json)
      : billingAddr = json['billingAddr'] ?? '',
        mailingCity = json['mailingCity'] ?? '',
        mailingState = json['mailingState'] ?? '',
        mailingZipCode = json['mailingZipCode'] ?? '';
}

class UserInfoModel {
  final String firstName;
  final String lastName;

  final String email;
  final String phone;

  UserInfoModel(this.firstName, this.lastName, this.email, this.phone);

  UserInfoModel.fromJson(Map<String, dynamic> json)
      : firstName = json['firstName'] ?? '-',
        lastName = json['lastName'] ?? '-',
        email = json['email'] ?? '-',
        phone = json['phone'] ?? '-';
}

class AccountInfoModel {
  final String totalBudgetGoal;
  final String availableToAssign;

  final String numberOfMyVCard;
  final String myTotalVCardlimit;
  final String numOfActiveBudget;
  final String numberOfMyPCard;

  AccountInfoModel(
      this.totalBudgetGoal,
      this.availableToAssign,
      this.numberOfMyVCard,
      this.myTotalVCardlimit,
      this.numOfActiveBudget,
      this.numberOfMyPCard);

  AccountInfoModel.fromJson(Map<String, dynamic> json)
      : totalBudgetGoal = (json['totalBudgetGoal'] ?? '-').toString(),
        availableToAssign = (json['availableToAssign'] ?? '-').toString(),
        numberOfMyVCard = (json['numberOfMyVCard'] ?? '-').toString(),
        myTotalVCardlimit = (json['myTotalVCardlimit'] ?? '-').toString(),
        numOfActiveBudget = (json['numOfActiveBudget'] ?? '-').toString(),
        numberOfMyPCard = (json['numberOfMyPCard'] ?? '-').toString();
}


class CreditInfoModel{
   final String availableCredit;
  final String currentBalance;

  final String creditLimit;

  CreditInfoModel(
      this.availableCredit,
      this.currentBalance,
      this.creditLimit);

  CreditInfoModel.fromJson(Map<String, dynamic> json)
      : availableCredit = (json['availableCredit'] ?? '-').toString(),
        currentBalance = (json['currentBalance'] ?? '-').toString(),
        creditLimit = (json['creditLimit'] ?? '-').toString();
}